using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.Article;

/// <summary>
/// 文章标签关联映射表
/// 用于处理文章和标签的多对多关系
/// </summary>
[MiddleTable]
public class SysArticleTagMapping : BasePoco
{
    [Required]
    [Display(Name = "文章ID", Description = "关联的文章ID", GroupName = "关联信息")]
    public Guid ArticleId { get; set; }

    [Display(Name = "文章", Description = "关联的文章对象", GroupName = "关联信息")]
    public SysArticle Article { get; set; }

    [Required]
    [Display(Name = "标签ID", Description = "关联的标签ID", GroupName = "关联信息")]
    public Guid TagId { get; set; }

    [Display(Name = "标签", Description = "关联的标签对象", GroupName = "关联信息")]
    public SysArticleTag Tag { get; set; }
} 